<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>03-双向绑定</title>
</head>
<body>
    <div id="app">
        <form>
            <input type="checkbox" v-model="language" name="language" value="java">java<br/>
            <input type="checkbox" v-model="language" name="language" value="php">php<br/>
            <input type="checkbox" v-model="language" name="language" value="python">python<br/>
        </form>
        <div>选中了{{ language.join(",") }}</div>
    </div>
    <script src="../node_modules/vue/dist/vue.min.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: {
                language: ["java"]
            }
        });
    </script>
</body>
</html>